#pragma once

#include <QtGui/QMainWindow>
#include <QtGui/QtGui>

class SpreadSheet : public QMainWindow
{
	Q_OBJECT
public:
	SpreadSheet(QWidget* parent = 0);
	~SpreadSheet();

private:
	void createActions();
	void createMenuBar();
	void createToolBars();
	void createStatusBar();

	void updateColor(QTableWidgetItem*);
private slots:
	void selectFont();
	void selectColor();
private:
	QAction* printAction;
	QAction* exitAction;

	QAction* cell_addAction;
	QAction* cell_subtractAction;
	QAction* cell_multiplyAction;
	QAction* cell_divideAction;
	QAction* cell_sumAction;

	QAction* colorAction;
	QAction* fontAction;

	QLabel*  cellLabel;
	QLineEdit* formulaEdit;

	QTableWidget* table;
	QLabel*  m_msgLabel;
};